package com.jjx.trainingapi.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jjx.trainingapi.common.BaseColumns;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author LoveHuahua
 * @date 2022年05月24日 1:10
 * @description believe in yourself
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "question_item")
public class QuestionItem extends BaseColumns {
    /**
     * 1=单选 2=多选 3=填空 4=简答题
     */
    @TableField(value = "`type`")
    private Integer type;

    /**
     * 问题
     */
    @TableField(value = "question")
    private String question;

    /**
     * 选项A
     */
    @TableField(value = "answer_a")
    private String answerA;

    /**
     * 选项B
     */
    @TableField(value = "answer_b")
    private String answerB;

    /**
     * 选项D
     */
    @TableField(value = "answer_d")
    private String answerD;

    /**
     * 选项C
     */
    @TableField(value = "answer_c")
    private String answerC;

    /**
     * 正确答案
     */
    @TableField(value = "answer")
    private String answer;

    /**
     * 解析
     */
    @TableField(value = "parsing")
    private String parsing;

    /**
     * 所属章节id（父）
     */
    @TableField(value = "section_id")
    private Integer sectionId;

}